<template>
	<view class="invite">
		<p>邀请好友一起来！</p>
		<view>
			<image :src="$imgUrl + qrcode"></image>
			<p>长按保存二维码</p>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				qrcode: ""
			};
		},
		methods: {
			getQrcode() {
				this.$httpRequest('/user/getShareImg').then(res => {
					this.qrcode = res.data;
				});
			},
		},
		onLoad() {
			this.getQrcode();
		}
	}
</script>

<style lang="less">
	.invite {
		width: 100vw;
		height: 100vh;
		background: url('../../../../static/57.png');
		background-size: 100% 100%;
		padding-top: 248rpx;
		box-sizing: border-box;

		&>p {
			font-size: 25px;
			font-weight: bold;
			color: #fff;
			margin-left: 46rpx;
		}

		&>view {
			width: 690rpx;
			height: 742rpx;
			background: #B5F1B3;
			margin: 100rpx auto 0;
			border-radius: 20rpx;
			display: flex;
			flex-direction: column;
			align-items: center;

			&>image {
				width: 494rpx;
				height: 494rpx;
				margin: 80rpx 0 60rpx;
				image-rendering: -moz-crisp-edges;
				image-rendering: -o-crisp-edges;
				image-rendering: -webkit-optimize-contrast;
				image-rendering: crisp-edges;
				-ms-interpolation-mode: nearest-neighbor;
			}

			&>p {
				font-size: 18px;
				color: #9E9E9E;
			}
		}
	}
</style>